<div class="noprint">
    <!--操作按钮-->
    <button type="button" class="layui-btn layui-btn-sm transFeedbackOpinions"><i class="layui-icon layui-icon-notice"></i>反馈</button>
    <button type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="save"><i class="layui-icon layui-icon-list"></i>保存表单</button>
    <button type="button" class="layui-btn layui-btn-sm flowChart"><i class="layui-icon layui-icon-picture-fine"></i>流程图</button>
    <button type="button" class="layui-btn layui-btn-sm taskOpinions"><i class="iconfont iconicon_compile"></i>审批历史</button>
    <button type="button" class="layui-btn layui-btn-sm communication"><i class="layui-icon layui-icon-dialogue"></i>沟通</button>
    <button type="button" class="layui-btn layui-btn-sm addTransTo"><i class="layui-icon layui-icon-add-1"></i>加签</button>
</div>
<script type="text/javascript">
    //前置脚本
    function beforeClick(operatorType){
    <#if (mapButton.button)!''>
        switch(operatorType){
            <#list mapButton.button as btn>
            <#if btn.prevscript!''>
            case ${btn.operatortype}:
                ${btn.prevscript}
                break;
            </#if>
            </#list>
        }
    </#if>
    }

    //后置脚本
    function afterClick(operatorType){
    <#if (mapButton.button)!''>
        switch(operatorType){
            <#list mapButton.button as btn>
            <#if btn.afterscript!''>
            case ${btn.operatortype}:
                ${btn.afterscript}
                break;
            </#if>
            </#list>
        }
    </#if>
    }

</script>
